package com.lam.smartbutlerv4.ui;
/*
 *  project name:       SmartButlerV5
 *  pakcage name:       com.lam.smartbutlerv4.ui
 *  file name:          ColesCLD1
 *  create date:        2019/2/17 21:20
 *  creator:            Luan Xiyuan
 *  description:        TODO
 */

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;

import com.lam.smartbutlerv4.R;
import com.lam.smartbutlerv4.ui.counter.CountDownProgressBar;

public class ColesACR3 extends AppCompatActivity {

    private CountDownProgressBar cpb_countdown;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_coles_acr3);
        cpb_countdown = (CountDownProgressBar) findViewById(R.id.cpb_countdown);
        cpb_countdown.setDuration(5000, new CountDownProgressBar.OnFinishListener() {
            @Override
            public void onFinish() {
                Toast.makeText(ColesACR3.this, "Processing completed.", Toast.LENGTH_SHORT).show();
                startActivity(new Intent(ColesACR3.this, ColesCLD3.class));
            }
        });
    }

    //back forbidden
    @Override
    public void onBackPressed() {
//        super.onBackPressed();
    }
}
